<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        const arrays=new Array("唐玮","哈哈");
        console.log(arrays);//['唐玮', '哈哈']
        console.table(arrays);

        //简洁的定义方法
        const array=[12,42,"唐玮"];
        // console.log(typeof array);//object
         array[1]="2850";
         console.log(array);
    </script>
</body>
</html>